package java8_5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Div {
    public static void main(String[] args) {
//        double a=43.4;
//        double b=0;
//        double c=a/b;
//        System.out.println(c);
        Scanner fenshu=new Scanner(System.in);
        System.out.println("输入语文成绩：");
        int a=fenshu.nextInt();
        System.out.println("输入数学成绩：");
        int b=fenshu.nextInt();
        System.out.println("输入英语成绩：");
        int c=fenshu.nextInt();
        //d=总分
        int d=a+b+c;
        //e=平均分
        double e=(a+b+c)/3.0;
        System.out.println("总分"+d);
        System.out.println("平均分"+e);
    }
}
